package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Organization;
import org.example.mapper.OrganizationMapper;
import org.example.service.OrganizationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 魏锴
 * @description 针对表【tb_assert_org】的数据库操作Service实现
 * @createDate 2024-01-08 22:50:26
 */
@Service
public class OrganizationServiceImpl extends ServiceImpl<OrganizationMapper, Organization>
        implements OrganizationService {
    @Override
    public boolean insertOrganization(Organization org) {
        return baseMapper.insertOrganization(org);
    }

    @Override
    public boolean updateOrganization(Organization org) {
        return baseMapper.updateOrganization(org);
    }

    @Override
    public boolean deleteOrganization(int id) {
        return baseMapper.deleteOrganization(id);
    }
    public Organization getOrganizationById(int id) {return baseMapper.getOrganizationById(id);}

    @Override
    public List<Organization> getOrganizationList(String father_name, String org_name) {
        return baseMapper.getOrganizationList(father_name, org_name);
    }
}




